<?php 
/*
 * Modification Engineers: Sean Margison, Derek Shue
 * Details: Template provided by UNC, modifications for images and authentication
 */
    $loggedOut = true;
    $auth = Zend_Auth::getInstance(); 
    if(!$auth->hasIdentity())
    {
	$loggedOut = true;
    }else{
	$loggedOut = false;
    } 

 ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<title>The University of North Carolina at Chapel Hill</title>
		<!-- *** Meta tag elements *** -->
		<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
		<meta name="Title" content="" />
		<meta name="Description" content="" />
		<meta name="Keywords" content="" />
		<meta name="Copyright" content="Copyright 2010 The University of North Carolina at Chapel Hill" />
		<meta name="Author" content="The University of North Carolina at Chapel Hill" />
		<meta name="Robots" content="INDEX,FOLLOW" />
		<link href="http://www.unc.edu/ccm/groups/system/documents/web-assets/ss_img_unc_favicon.ico" rel="shortcut icon" />
		<link rel="stylesheet" href="http://www.unc.edu/ccm/groups/system/@unc/documents/web-assets/styles_unc_fed_compiled.css" type="text/css" media="screen"/>
		<link rel="stylesheet" href="http://www.unc.edu/ccm/groups/system/@unc/documents/web-assets/styles_unc_fed_print.css" type="text/css" media="print"/>
		<!--[if lte IE 6]>
		<link rel="stylesheet" href="http://www.unc.edu/ccm/groups/assets/@unc/documents/web-assets/styles_unc_fed_ie6.css"
		type="text/css" media="screen"/>
		<![endif]-->
		<script src="http://www.unc.edu/ccm/groups/system/@unc/documents/web-assets/js_unc_fed_jquery_1.3.2.js" type="text/javascript"></script>
		<script src="http://www.unc.edu/ccm/groups/system/@unc/documents/web-assets/js_unc_fed_templates.js" type="text/javascript"></script>
		<script src="http://www.unc.edu/ccm/groups/system/@unc/documents/web-assets/js_unc_fed_search-clear.js" type="text/javascript"></script>
		<!-- call alert feed script -->
		<script type="text/javascript" src="http://its2.unc.edu/unc-feeds/alertFeed.js.php"></script>
		<!-- call utility bar script -->
		<script src="http://www.unc.edu/ccm/groups/system/@unc/documents/web-assets/js_show_utility_bar.js" type="text/javascript"></script>
	</head>
	<body>
		<script type="text/javascript">
			show_utility('gray', '960px');

		</script>
		<div id="container">
			<div id="skip-navigation">
				<a href="#content-well" accesskey="s">Skip Navigation</a>
			</div>
			<!--Header Begin-->
			<div id="header">
				<h1 id="unc-logo"><a href="http://www.unc.edu/apples/portal/public/index.php" accesskey="1"> <img id="logoAPPLES" class="no_border" src="/apples/portal/public/images/APPLES Logo.jpg" alt="APPLES Logo"/><span> The University of North Carolina at Chapel Hill </span> </a></h1>
				<h2><a href="/"></a></h2>
			</div>
			<!--Header End-->
			<!--Primary Nav Begin-->
			<div id="primary_nav" title="Primary Navigation" >
				<ul>
					<li>
						<a target = "_blank" href="http://www.unc.edu/apples">APPLES Program</a>
					</li>
					<li>
						<a target = "_blank" href="http://www.unc.edu/ccps">Carolina Center for Public Service</a>
					</li>
					<li>
						<a target = "_blank" href="http://www.unc.edu/apples/students/index.html">Student Programs</a>
					</li>
					<li>
						<a target = "_blank" href="http://www.unc.edu/apples/faculty/index.html">Teaching Resources</a>
					</li>
					<li>
						<a target = "_blank" href="http://www.unc.edu/apples/partners/index.html">Community Partnerships</a>
					</li>
				</ul>
				<div class="clearfix"></div>
			</div>
			<!--Primary Nav End-->
			<!--Breadcrumbs/Search Begin-->
			<div id="breadcrumbs" title="Breadcrumb Navigation">
				<ul>
					<li>
						<a href = "http://www.unc.edu/apples/portal/public/index.php" title="Home">Home</a>
					</li>
					&nbsp;&raquo;
					<li>
						Portal
					</li>
				</ul>
				<form action="http://www.unc.edu/search/index.htm" method="get" name="gs" id="gs">
					<input name="q" type="text" value="Search this site" class="searchField"  id="search" onfocus="goBlank('search','');"/>
					<input type="submit" id="submitSearchButton" class="searchButton" value="Go" />
					<input type="hidden" name="cx" value="014532668884084418890:jyc_iub1byy" />
					<input type="hidden" name="cof" value="FORID:10" />
					<input type="hidden" name="ie" value="UTF-8" />
					<!--<input name="hq" value="inurl:research.unc.edu" type="hidden" /> uncomment and change to your site's host name -->
				</form>
				<div class="clearfix"></div>
			</div>
			<!--Breadcrumbs/Search End-->
			<!--Left Column Begin-->
			<div id="left-col">
				<div class="context-nav" title="Secondary Navigation" >
				    <?php 
					echo $this -> partial('./nav.phtml',array('userlevel' => 'unk'));
				   ?>
				</div>
			</div>
			<!--Left Column End-->
			<!--Content Begin-->
			<div id="content-l">
<?php if($loggedOut):?>
	<img src="/apples/portal/public/images/loginimage.jpg" alt="APPLES Learning" class="heroGraphic" />
<?php endif;?>				
			<div id="content-well">
					<div class="tools-main">
						<div id="print">
							<a href="javascript:this.print();"><span>Print</span></a>
						</div>
						<div id="tools_label">
							Text:
						</div>
						<div id="plustext" onclick="resizeText(1)" style="margin: -2px 4px 0 0;">
							<span>Increase font size</span>
						</div>
						<div id="minustext" onclick="resizeText(-1)" style="margin: -2px 4px 0 0;">
							<span>Decrease font size</span>
						</div>
					</div>
					<div id="content-leftcol">
						<?php echo $this->layout()->content ?>
					</div>
				</div>
			</div>
			<!--Content End-->
			<div id="footer_secondary2">
				<div id="f_left">
					<h5>Contact Information</h5>
					<p>
						Suite 3514 Carolina Union
						<br />
						Chapel Hill, NC 27599
						<br />
						Phone: 919-962-0902
						<br />
						Email: applesoutreach@unc.edu
					</p>
				</div>
			</div>
			<!-- Footer Begin -->
			<script src="http://www.unc.edu/ccm/groups/system/@unc/documents/web-assets/js_unc_global_footer.js" type="text/javascript"></script>
			<!-- End Footer -->
		</div>
		<script type="text/javascript">
			//<![CDATA[
			var c = document.getElementById("content-well");

			function resizeText(multiplier) {
				if(c.style.fontSize == "") {
					c.style.fontSize = "10pt";
				}
				c.style.fontSize = parseFloat(c.style.fontSize) + (multiplier * 2) + "pt";
				if(c.style.fontSize == "6pt") {
					c.style.fontSize = parseFloat(c.style.fontSize) + 2 + "pt";
				} else if(c.style.fontSize == "20pt") {
					c.style.fontSize = parseFloat(c.style.fontSize) - 2 + "pt";
				}
			}

			function resetText() {
				c.style.fontSize = "10pt";
			}

			//]]>
		</script>
	</body>
</html>
